package com.example.kt_base.s4

//TODO 59.Kotlin语言的mutator函数
fun main() {

    //mutator += -=操作
    val list= mutableListOf("Derry","DerryAll","DerryStr","zhangShan")
    list+="wangWu"
    list+="liShi"
    list-="zhangShan"
    println(list)

    //removeIf
    list.removeIf { it.contains("Derr") }
    println(list)



}
